<?php echo $this->render('admin/head.phtml');?>
<table cellspacing="0" cellpadding="0" class="resultTable">
  <tr>
    <th>订购编号</th> 
    <th>课程标题</th> 
    <th>价格</th>
    <th>老师</th>
    <th>状态</th>
    <th>时间</th>
    <th>操作</th>
  </tr>
  <?php $i=1; foreach ($this->orders as $order){ ?>
  <tr class="<?php echo ($i++)%2 ? "" : "bg2";?>">
    <td class="td_order_id"><?php echo $order["pay_id"]; ?></td> 
    <td class="td_order_amount"><?php echo $order["title"]; ?></td> 
    <!-- <td class="td_order_amount"><?php echo $order["descript"]; ?></td>  -->
    <td class="td_order_time"><?php printf("%.2f",$order["price"]); ?>元</td>
    <td class="td_order_time"><?php echo $order["username"] ? $order["username"] : $order["email"]; ?></td>
    <td class="td_order_status"><?php if ($order["status"]){ echo Application_Model_PayHistory::$TRANSCATION_STATUS[$order["status"]];} ?></td> 
    <td class="td_order_status"><?php echo $order["time"]; ?></td> 
    <td class="td_order_status"><a href="/admin/refund?pay_id=<?php echo $order["pay_id"]; ?>">确认退款</a></td> 
  </tr>
  <?php } ?>
</table>
<?php echo $this->render('admin/foot.phtml');?>
